﻿<UserControl
    x:Class="MySilverlightAlbum.PhotoAlbumSite"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:MySilverlightAlbum"
    mc:Ignorable="d"
    d:DesignWidth="640"
    d:DesignHeight="480">

    <Grid
        x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition
                x:Name="menuRow"
                Height="26" />

            <RowDefinition
                x:Name="menuSpacerRow"
                Height="10" />

            <RowDefinition
                Height="*" />

            <RowDefinition
                x:Name="descriptionRow"
                Height="200" />

            <RowDefinition
                x:Name="spacerRow"
                Height="10" />

            <RowDefinition
                x:Name="helpRow"
                Height="14" />

        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>

            <ColumnDefinition
                x:Name="listColumn"
                Width="54" />

            <ColumnDefinition
                Width="146" />

            <ColumnDefinition
                Width="*" />

            <ColumnDefinition
                Width="200" />

        </Grid.ColumnDefinitions>

        <local:ImageViewer
            x:Name="imageViewer"
            Grid.Column="0"
            Grid.ColumnSpan="4"
            Grid.Row="0"
            IsTabStop="True"
            TabIndex="0"
            Grid.RowSpan="6"
            VerticalAlignment="Stretch"
            HorizontalAlignment="Stretch">

        </local:ImageViewer>

        <local:MainMenu
            x:Name="mainMenu"
            Grid.Row="0"
            Grid.Column="0"
            IsTabStop="False"
            Grid.ColumnSpan="4"
            Margin="0 0 0 0"
            Height="26"
            HorizontalAlignment="Stretch" />


        <local:ImageList
            Grid.Row="2"
            Grid.RowSpan="2"
            x:Name="imageList">

        </local:ImageList>

<!-- BEGIN IMAGE DESCRIPTION -->
        
            <Rectangle
            x:Name="imageDescriptionRect"
            Grid.Row="3"
            Grid.Column="2"
            VerticalAlignment="Stretch"
            HorizontalAlignment="Stretch"
            Fill="{StaticResource MenuFill}" />

        <Grid
            x:Name="imageDescription"
            Grid.Row="3"
            Grid.Column="2">
            <Grid.RowDefinitions>
                <RowDefinition
                    Height="20" />
                <RowDefinition
                    Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition
                    Width="295" />
                <ColumnDefinition
                    Width="*" />
            </Grid.ColumnDefinitions>

            <Image
                Margin="2"
                Grid.Row="0"
                Grid.RowSpan="2"
                Grid.Column="0"
                Name="magnImage"
                Source="{Binding ThumbnailImage}"
                Stretch="Uniform">
            </Image>

            <TextBlock
                Margin="2 2 2 2"
                Grid.Row="0"
                Grid.Column="1"
                VerticalAlignment="Stretch"
                HorizontalAlignment="Stretch"
                TextWrapping="NoWrap"
                FontWeight="Bold"
                Foreground="{StaticResource ImageTextBrush}"
                Text="{Binding Title}"></TextBlock>

            <TextBlock
                Margin="2 2 2 2"
                Grid.Row="1"
                Grid.Column="1"
                VerticalAlignment="Stretch"
                HorizontalAlignment="Stretch"
                TextWrapping="Wrap"
                Foreground="{StaticResource ImageTextBrush}"
                Text="{Binding Description}"></TextBlock>

        </Grid>
        
<!-- END IMAGE DESCRIPTION -->

        <Rectangle
            x:Name="helpLineRect"
            Grid.Row="5"
            Grid.Column="0"
            Grid.ColumnSpan="4"
            VerticalAlignment="Stretch"
            HorizontalAlignment="Stretch"
            Fill="{StaticResource MenuFill}" />

        <TextBlock
            Text="{Binding CurrentControlHelp}"
            Foreground="{StaticResource SubMenuTextForeground}"
            Grid.Row="5"
            Grid.Column="0"
            Grid.ColumnSpan="4"
            Margin="3 1 0 0"
            VerticalAlignment="Stretch"
            HorizontalAlignment="Stretch"
            FontFamily="Trebuchet MS"
            FontSize="9" />

    </Grid>
</UserControl>
